package com.lagouedu.service;

import com.lagouedu.filter.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name="lagou-service-user")
public interface TokenFeign {
    @RequestMapping("/api/user/info/{token}")
    public R getEmailByToken(@PathVariable("token") String token);
}
